﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
namespace 计科2111林开心
{
    public partial class _1_8 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void 粗体_CheckedChanged(object sender, EventArgs e)
        {
            if (Label1.Font.Bold == false)
                Label1.Font.Bold = true;
            else Label1.Font.Bold = false;
        }

        protected void 斜体_CheckedChanged(object sender, EventArgs e)
        {
            if(Label1.Font.Italic == false)
              Label1.Font.Italic = true;
            else Label1.Font.Italic = false;
        }

        protected void 红色_CheckedChanged(object sender, EventArgs e)
        {
            if (Label1.ForeColor == Color.Crimson)
                Label1.ForeColor =Color.Black;
             else  Label1.ForeColor=Color.Crimson;


        }
    }
}